package com.example.demo.design.demo10_templateMethod;

/**
 * Created by 蔡超 on 2018/10/2.
 */
public abstract class AbstractTemplate {

    public void question1(){
        System.out.println("问题一、");
    }

    public void question2(){
        System.out.println("问题二、");
    }

    public void question3(){
        System.out.println("问题三、");
    }

    abstract void answer1();

    abstract void answer2();

    abstract void answer3();

    public void test(){
        question1();
        answer1();
        question2();
        answer2();
        question3();
        answer3();
    }

}
